package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.CategoryVo;
import com.spzx.product.domain.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Author ChenXing
 * @Description
 * @Create 2024/7/27 23:57
 */
public interface ICategoryService extends IService<Category>
{

     List<Category> treeSelect(Long id);


    // 这个方法写这是为了下一个模块调用。也是为了将所有子节点都找出来，所有分类展示出来
     List<Long> getAllCategoryIdList(Long categoryId);

    void exportData(HttpServletResponse response);

    void importFile(MultipartFile multipartFile);

   List<CategoryVo> getOneCategory();

    List<CategoryVo> tree();
}
